package com.genius.reservation.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.receiver.entity.ReceiverInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.genius.reservation.reservation.entity.ReservationOrderInformation;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface ReceiverInformationMapper extends BaseDao<ReceiverInformation> {

    default LambdaQueryWrapper<ReceiverInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    default ReceiverInformation up(ReceiverInformation entity){
        this.update(entity);
        return entity;
    }
    default ReceiverInformation ad(ReceiverInformation entity){
        this.save(entity);
        return entity;
    }

    ReceiverInformationMapper selectReceiverAvailableTime(@Param("receiverNumber")String receiverNumber);

    List<ReceiverInformation> selectReceiverList();

    ReceiverInformation selectReceiverNumber(@Param("receiverNumber")String receiverNumber);



}
